-- GENERATED SPELL FOR [Ghostly Baker] --


function spell0_16412(pUnit, Event) --@Roast,n/a--
pUnit:FullCastSpellOnTarget(29675,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16412', 21000, 1)
end

function spell1_16412(pUnit, Event) --@Rolling Pin,n/a--
pUnit:FullCastSpellOnTarget(29676,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16412', 2348, 1)
end

function Sorts_16412(pUnit, Event)
local choix_sorts_16412 = math.random(0, 1)
if choix_sorts_16412 == 0 then
pUnit:RegisterEvent('spell0_16412', 1, 1)
end
if choix_sorts_16412 == 1 then
pUnit:RegisterEvent('spell1_16412', 1, 1)
end
end

function mob16412_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16412', math.random(1500, 3000), 1)
end

function mob16412_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16412_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16412_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16412, 1, 'mob16412_Action')
RegisterUnitEvent(16412, 2, 'mob16412_Leave')
RegisterUnitEvent(16412, 3, 'mob16412_Kill')
RegisterUnitEvent(16412, 4, 'mob16412_Die')
